package controller;

import java.awt.Point;

/**
 * Class represents a Move object- an object that holds source and destination positions
 */
public class Movement {
	
	private Point source;
	private Point destination;

	
	/**
	 * Constructor- creates a new move with given source and destination
	 * @param source- move's source position
	 * @param destination- move's destination position
	 */
	public Movement(Point source, Point destination) {
		
		// set members according to given values
		this.source = source;
		this.destination = destination;
	}

	/**
	 * Returns move's source position
	 * @return source position
	 */
	public Point getSource() {
		
		// return source position attribute
		return source;
	}

	/**
	 * Returns move's destination position
	 * @return destination position
	 */
	public Point getDestination() {
		
		// return destination position attribute
		return destination;
	}
}